﻿@model KRM.Core.tblOrder
@{
    ViewBag.Title = "Edit email template";
    Layout = "~/Views/Shared/_PopupLayout.cshtml"; 
}
@Html.Partial("Partial/_MessageResult")
<form action="/orderview/EmailTemplate" method="POST">
    <input type="hidden" name="orderid" value="@Model.OrderID"/>
    <input type="hidden" name="storeid" value="@Model.StoreID"/>
    <div class="row-fluid">
        <div style="padding: 20px">
            <div class="row-fluid">
                <div class="span3">Website</div>
                <div class="span9">
                    <strong>@ViewBag.StoreName</strong>
                </div>
            </div>
            <div class="row-fluid">
                <div class="span3">Email subject</div>
                <div class="span9">
                    @Html.DropDownList("EmailSubjectId", null, new { onchange = "emailchange(this.value)" })
                </div>
            </div>
            <div class="row-fluid">
                <strong>Content
                </strong>
                <textarea class="ckeditor" name="TemplateText">@ViewBag.Content</textarea>
            </div>
            <div class="text-center" style="padding-top: 10px">
                <button class="btn btn-primary">Update</button>
                <a href="/orderview/contactcustomer/@Model.OrderID" class="btn" style="margin-left: 20px">Back</a>
            </div>
        </div>
    </div>
</form>
